package cn.com.bluemoon.daps.system.entity;


import cn.com.bluemoon.daps.common.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * <p>
 * 系统标签表
 * </p>
 *
 * @author admin
 * @since 2020-08-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors
@ApiModel(value = "DapSystemTag", description = "系统标签表")
public class DapSystemTag extends BaseModel<DapSystemTag> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标签名称，目前设定不超过50个字符")
    @NotNull(message = "标签名称不能为空")
    @Size(max = 20, message = "标签名不能超过20")
    private String name;

    @ApiModelProperty(value = "标签分组")
    @NotNull(message = "标签分组id不能为空")
    private String tagGroupId;

    @ApiModelProperty(value = "标签分组")
    private Integer tagType;

    @ApiModelProperty("标签描述")
    @Size(max = 200, message = "描述不能超过200")
    private String description;

}
